/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-07-24
*/
package com.rzico.order.mapper;

import com.rzico.base.BaseMapper;
import com.rzico.order.entity.VirtualStock;
import com.rzico.order.model.VirtualStockVo;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
/**
 * <pre>
 *   虚拟商品库存映射类
 * </pre>
 *
 * @author Rzico Boot
 * @version 1.0
 */
@Mapper
public interface VirtualStockMapper extends BaseMapper<VirtualStock, String> {
   List<VirtualStock> selectList(Map<String, Object> params);
   List<VirtualStockVo> selectVoList(Map<String, Object> params);
   int selectRowCount(Map<String, Object> params);

   int addStock(Map<String, Object> params);
   int decStock(Map<String, Object> params);

   int addAllocatedStock(Map<String, Object> params);
   int decAllocatedStock(Map<String, Object> params);

   BigDecimal selectStockSum(Map<String, Object> params);
   BigDecimal selectPriceSum(Map<String, Object> params);
}
